package com.gaoyubo.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;

public class Goods implements Serializable{
    private static final long serialVersionUID = -8059409025603709917L;
    //主键:id int
    private Integer id;
    //商品名称：name
    private String name;
    //价格：price
    private Integer price;
    //图片路径：Imge_url
    private String Imge_url;
    //上架状态upper_Status
    private Integer upper_Status;
    //出厂日期：factory_date
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date factory_date;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getImge_url() {
        return Imge_url;
    }

    public void setImge_url(String imge_url) {
        Imge_url = imge_url;
    }

    public Integer getUpper_Status() {
        return upper_Status;
    }

    public void setUpper_Status(Integer upper_Status) {
        this.upper_Status = upper_Status;
    }

    public Date getFactory_date() {
        return factory_date;
    }

    public void setFactory_date(Date factory_date) {
        this.factory_date = factory_date;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", Imge_url='" + Imge_url + '\'' +
                ", upper_Status=" + upper_Status +
                ", factory_date=" + factory_date +
                '}';
    }
}
